fix(ci): unblock pro submodule fallback sync - #768
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe Actions workflow now clears GitHub HTTP extra headers when resolving the upstream target SHA (using ChangesPro Submodule Sync Workflow
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📊 Coverage ReportCoverage report not available
Generated by PR Automation (Story 6.1) |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/sync-pro-submodule.yml:
- Line 119: The workflow is reusing PRO_SUBMODULE_TOKEN (GH_TOKEN env) for
creating/editing PRs which either forces widening its scope or breaks PR writes;
create a dedicated write-scoped secret (e.g., PR_APP_TOKEN or PRO_PR_TOKEN) with
the correct app/ PAT permissions for gh pr create/edit, add that secret to the
workflow and replace GH_TOKEN: ${{ secrets.PRO_SUBMODULE_TOKEN }} with GH_TOKEN:
${{ secrets.PRO_PR_TOKEN }} (or analogous name) where gh pr create/edit is
invoked, and keep PRO_SUBMODULE_TOKEN restricted to read-only submodule access
so you don’t broaden its scope.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 7d291de1-f345-4306-8827-3fc86945f497
📒 Files selected for processing (1)
.github/workflows/sync-pro-submodule.yml
Summary
aiox-provia the authenticatedPRO_SUBMODULE_TOKENremote.PRO_SUBMODULE_TOKENforgh pr create/editbecause the organization blocksGITHUB_TOKENfrom creating pull requests.Validation
npx yaml-lint .github/workflows/sync-pro-submodule.ymlgit ls-remotesimulation with a bogus checkout extraheader confirmed the explicit empty extraheader lets the authenticated Pro URL resolverefs/heads/main.PRO_SUBMODULE_TOKENand confirmed clone/update path works by manual dispatch with explicittarget_sha; failure moved to PR creation, now addressed by this patch.Fixes #762
Summary by CodeRabbit